import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//批量代付业务报文查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentBusinessQuery/search`,
}

//批量代付业务报文查询明細表查询
export const apiUrlConfigQueryDetailTabSearch = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentBusinessQuery/detailTabSearch`,
}

//批量代付业务报文查询应答明細表查询
export const apiUrlConfigQueryReplyDetailTab = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentBusinessQuery/replyDetailTabSearch`,
}

// 批量代付业务报文查询明细
export function batchPaymentBusinessQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentBusinessQuery/detail`,
    method: 'get',
    params:{id:data.id}
  })
}

// 批量代付业务报文查询应答明细
export function batchPaymentBusinessQueryReplyDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/batchCollectionAndPayment/BatchPaymentBusinessQuery/replyDetail`,
    method: 'get',
    params:{retId:data.retId}
  })
}


